package com.iplay.principle.DIP;

/**
 * @author dangwu
 * @since 2021/9/6 5:21 下午
 */
public class Driver implements IDriver{
    private ICar iCar;
    public Driver(ICar iCar){
        this.iCar = iCar;
    }

    @Override
    public void drive() {
        iCar.run();
    }
}
